﻿{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">查看客服备注 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >原单号</td>
	<td class="tLeft span12" >
            <input type="text" name="mall_no" value="{$vo.mall_no}" class="large">
        </td>
</tr>
<tr>
    <td>创建人:</td>
    <td>{$vo.creater_id|getModelName='User'}     <span class="offset1"> {$vo.create_time|toDate}</span> </td>
</tr>
<tr>
    <td>客服备注:</td>
    <td>{$vo.content}</td>
</tr>
<tr>
    <td>指定负责部门</td>
    <td>{:configList(C('depart'),$vo['depart'],'depart','span2')}</td>
</tr>
<tr>
    <td>处理状态:</td>
    <td>{:configList(C('process_status'),$vo['status'])}</td>
</tr>
<tr>
	<td class="tRight" >回复</td>
	<td class="tLeft" >
            <textarea name="reply" class="span7" rows="5">{$vo.reply}</textarea>
            <input type="hidden" name="update_time" value="{:time()}">
            <input type="hidden" name="receiver_id" value="{$_SESSION[C('USER_AUTH_KEY')]}">
        </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
<tr>
	<td>订单摘要</td>
	<td class="tLeft span12">
		<?php $rs = M('Sale')->where('mall_no like "%'.trim($vo['mall_no']).'%" ' )->find();
        ?>
        <notempty name="rs">
		<table cellpadding=3 cellspacing=3  class="table table-bordered">
			    <tr><td colspan="4" class="heading h4 alert alert-info">订单号：{$rs.sale_no} | {$rs.order_source_id|getModelName='Order_source'} 
			        <span class="offset1">{$rs.order_status|getConfigVal="orderstatus"}</span>
			        <span class="offset1">配货状态：{$rs.prepare_status|getConfigVal="prepare_status"}</span>
			        <span class="offset1"> <eq name="rs.status" value="0"> 未审核<else/> 审核通过 </eq> </span>
			       </td>
			</tr>
			    <tr >
			        <td>买家：</td><td>{$rs.customer_name}
			        </td>
			        <td>下单时间：</td><td>{$rs.create_time|toDate}</td>
			    </tr>
			    <tr>
			        <td colspan="4">
			       <table id="more1">
			    <tr >
			        <td>支付方式及时间：</td><td>{$vo.pay_time|toDate} 支付宝：{$vo.alipay} </td>
			        <td>审核时间：</td><td>{$rs.check_time|toDate}</td>
			    </tr> 
			           
			    <tr>
			        <td>应收款：</td><td>{$rs.should_pay} , 客户实付款： <empty name="rs.real_pay">{$rs.sum_pay} <else/>{$rs.real_pay} </empty> </td>
			        <td>快递费：</td><td>{$rs.logifee}</td>
			    </tr>
			    <tr id="more" >
			        <td>快递公司：</td><td>{$rs.logicompany_id|getModelName='logicompany'} 发货时间: {$rs.shipping_time|toDate}</td>
			        <td>单号：</td><td>{$rs.logino} <!--<input type="text" name="logino" value="{$vo.logino}"> -->  </td>
			    </tr>
			    
			     <tr id="more" > <td>收货人：</td><td>{$rs.shipping_name} </td>
			         <td>手机</td><td> {$rs.mobile}</td>
			        
			    </tr>
			       </table> 
			        </td>
			    </tr>
			    <tr id="more" >
			       <td>地址：</td><td>{$rs.address}</td>
			        <td>电话</td><td>{$rs.phone} </td>
			    </tr>
			    <tr>
			        <td colspan="4">客户留言：{$rs.customer_msg}</td>
			     </tr>

			<tr>
			    <td colspan="4">备注:{$rs.remark}</td>
			</tr>
		</table>
	   </notempty>
	</td>
</tr>
<tr>
    <td>商品明细</td>
    <td>
    	<table class="table table-bordered">
    		<tr><th>商品</th><th>数量</th><th>价格</th> </tr>
    		<?php $details = M('Sale_detail')->where('sale_id ='.$rs['id'])->findAll() ?>
    		<volist name="details" id="de">
	    		<tr>
	    			<td>{$de.sale_title}</td>
	    			<td>{$de.number}</td>
	    			<td>{$de.price}</td>
	    		</tr>
    		</volist>
    	</table>
    </td>
</tr>

</table>
</form>
</div>
</div>
